import 'package:intl/intl.dart';

final formatter = NumberFormat('#.########');
final formatter2 = NumberFormat('#.##');
final formatter1 = NumberFormat('#.#');

extension numExtension on num {
  String get removeTrailingZerosWithFormat => formatter.format(this);
  String get removeTrailingZerosWithFormat2 => formatter2.format(this);
  String get removeTrailingZerosWithFormat1 => formatter1.format(this);
}
